Memory management for a hierarchical memory system

ABSTRACT

Disclosed are systems and methods for managing memory. A memory management system may include a table having multiple virtual memory addresses. Each virtual memory address may correspond to a physical memory address and data that identifies a type of memory device corresponding to the physical memory address. The physical memory device can be used to access the memory device when a table hit occurs.

BACKGROUND

Field of Invention

Embodiments of the present invention relate generally to memory management. More specifically, embodiments of the present invention may provide one or more techniques for memory management in a hierarchical memory system.

Description of Related Art

Computer systems are generally employed in numerous configurations to provide a variety of computing functions. Processing speeds, system flexibility, power consumption, and size constraints are typically considered by design engineers tasked with developing computer systems and system components. Computer systems generally include a plurality of memory devices (e.g., a dual in-line memory module (DIMM) may contain 8, 16, or more memory devices, a stacked NAND flash package may contain 2, 4, or 8 NAND die) and a plurality of memory types (i.e., memory devices that may have different performance and/or power characteristics) which may be used to store data (e.g., programs and user data) and which may be accessible to other system components such as processors or peripheral devices. Such memory devices may include volatile and non-volatile memory devices.

Typically, the memory address space of a computing system is managed by a memory management system. In certain computing systems, the memory management system may dynamically allocate portions of the memory address space to programs being executed by the processors and may allocate a separate portion of the memory address space to data being used by such a program. Conversely, the memory management system may deallocate portions of the memory address space from programs when the programs are no longer being executed by the processors. The memory management system may include tables used to map virtual memory addresses that are used by the processors to the physical memory address space. These tables may include a main memory translation table (MMXT) and a translation lookaside buffer (TLB). Often the TLB contains memory mappings for memory addresses that are used more frequently than the memory addresses in the MMXT. Searching through the MMXT and/or the TLB for a memory mapping may be time consuming resulting in delayed data retrieval.

Memory systems are often arranged with a memory hierarchy. For example, certain memory may be found in registers, cache (e.g., level 1, level 2, level 3), main memory (e.g., RAM), disk storage, and so forth. As may be appreciated, some memory systems include memory types that have different operating characteristics (e.g., operate at differing speeds). However, memory management systems generally do not differentiate between types of memory in the memory system (e.g., main memory). Accordingly, such memory management systems may handle all types of memory in the same manner. Further, some memory devices in the memory systems may be accessed (e.g., read from and/or written to) a greater number of times than other memory devices in the memory systems. As such, it may be difficult for a memory management system to identify (e.g., determine) which memory devices operate at a particular speed within the memory system. Likewise, it may be difficult for a memory management system to identify which memory devices are accessed more than others.

Accordingly, embodiments of the present invention may be directed to one or more of the problems set forth above.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 illustrates a block diagram of a processor-based system in accordance with embodiments of the present invention;

FIG. 2 illustrates a block diagram of a memory management system in accordance with embodiments of the present invention;

FIG. 3 illustrates a block diagram of a translation lookaside buffer in accordance with embodiments of the present invention;

FIG. 4 illustrates a block diagram of a translation device in accordance with embodiments of the present invention;

FIG. 5 illustrates a flow chart of a method for accessing a physical memory address when a memory management system receives a virtual memory address in accordance with embodiments of the present invention; and

FIG. 6 illustrates a flow chart of a method for managing physical memory address space of a computing system in accordance with embodiments of the present invention.

DETAILED DESCRIPTION

Some of the subsequently discussed embodiments may facilitate memory systems with greater versatility, such as memory systems that use multiple different types of memory devices and memory systems that dynamically rearrange data stored on the different types of memory devices. As is described in detail below, a memory management system may include a table that correlates a physical memory address with a type of memory device. For example, a memory management system may include a table having multiple virtual memory addresses. Each virtual memory address may correspond to a physical memory address and to data that identifies a type of corresponding memory device. The physical memory address may be used to access the memory device when a table hit occurs. As such, the following discussion describes devices and methods in accordance with embodiments of the present technique.

Turning now to the drawings, and referring initially to FIG. 1, a block diagram depicting a processor-based system, generally designated by reference numeral 10, is illustrated. The system 10 may be any of a variety of types such as a computer, pager, cellular phone, personal organizer, control circuit, etc. In a typical processor-based device, one or more processors 12, such as a microprocessor, control the processing of system functions and requests in the system 10. As will be appreciated, the processor 12 may include an embedded North or South bridge (not shown), for coupling components thereto. Alternatively, the system 10 may include separate bridges coupled between the processor 12 and the various components of the system 10. As illustrated, the processor 12 may include cache 13 (e.g., CPU cache) to reduce the average time that it takes for the processor 12 to access memory.

Various devices may be coupled to the processor 12 depending on the functions that the system 10 performs. For instance, a user interface may be coupled to the processor 12. The user interface may include buttons, switches, a keyboard, a light pen, a mouse, a display, and/or a voice recognition system, for instance. The display may include a touchscreen display, an LCD display, a CRT, LEDs, and/or an audio display, for example. One or more communication ports may also be coupled to the processor 12. The communication port may be adapted to be coupled to one or more peripheral devices such as a modem, a printer, a computer, or to a network, such as a local area network, remote area network, intranet, or the Internet, for instance.

Because the processor 12 generally controls the functioning of the system 10 by implementing software programs, memory is operably coupled to the processor 12 to store and facilitate execution of various programs. Accordingly, a hierarchical memory system 14 is operably coupled to the processor 12 via a system bus 16. The hierarchical memory system 14 includes a memory management system 18 and any number of memory devices. For example, the hierarchical memory system 14 may include a memory_0 20 (e.g., of a first type), a memory_1 22 (e.g., of a second type), and any additional memory devices represented by memory_N 24 (e.g., of an nth type).

The memory management system 18 may perform a variety of memory management functions. For example, the memory management system 18 may manage virtual memory address to physical memory address translation, memory reallocation, memory organization, memory usage, and so forth. As illustrated, the memory management system 18 is operably coupled to the memory devices 20, 22, and 24 by respective data busses PA_0 26, PA_1 28, and PA_N 30. As will be appreciated, PA_N 30 may represent a number of data busses that correspond to the memory devices memory_N 24.

One or more of the memory devices 20, 22, and 24 may be volatile memory which may include Dynamic Random Access Memory (DRAM), and/or Static Random Access Memory (SRAM). The volatile memory may include a number of memory modules, such as single inline memory modules (SIMMs), dual inline memory modules (DIMMs), and/or Hybrid Memory Cubes (HMCs). As will be appreciated, the volatile memory may simply be referred to as the “system memory.” The volatile memory is typically quite large so that it can store dynamically loaded applications and data.

Further, one or more of the memory devices 20, 22, and 24 may be non-volatile memory which may include read-only memory (ROM), such as an EPROM, flash memory (e.g., NOR and/or NAND), and/or phase-change memory (PCM) to be used in conjunction with the volatile memory. The size of the ROM is typically selected to be large enough to store any necessary operating system, application programs, and fixed data. Additionally, the non-volatile memory may include a high capacity memory such as a tape or disk drive memory. Accordingly, the memory devices 20, 22, and 24 do not need to be block storage devices.

As such, the hierarchical memory system 14 is versatile in allowing many types of memory devices 20, 22, and 24 to be operably coupled to the processor 12. Accordingly, the memory management system 14 may be adapted to the hierarchical memory system 14 to optimize the performance of the memory devices 20, 22, and 24. Some examples of the memory management system 18 adapted for use in the hierarchical memory system 14 are illustrated in FIGS. 2-4. Specifically, FIG. 2 illustrates a memory management system 18 with a translate (XLAT) translation device and a translation lookaside buffer and FIGS. 3 and 4 further illustrate the translation lookaside buffer and the XLAT translation device, respectively. FIGS. 5 and 6 illustrate methods that the memory management system 18 may use to manage the memory devices 20, 22, and 24.

Referring now to FIG. 2, a block diagram of the memory management system 18 is illustrated. During operation, the memory management system 18 receives a virtual memory address 32 (e.g., from processor 12). The memory management system 18 identifies a physical memory address 34 that is mapped to the virtual memory address 32 and that is used to access one of the memory devices 20, 22, and 24. If the memory management system 18 is unable to identify which physical memory address 34 is mapped to the virtual memory address 32, then the memory management system 18 produces (e.g., generates) a page fault 36, which may be transmitted to the processor 12.

To identify the physical memory address 34 that is mapped to the virtual memory address 32, the memory management system 18 uses an XLAT translation device 38 and a translation lookaside buffer (TLB) 40. The XLAT translation device 38 and the TLB 40 may each store a respective table that maps virtual memory addresses to physical memory addresses. Although the XLAT translation device 38 and the TLB 40 are illustrated separately, in certain embodiments, the XLAT translation device 38 and the TLB 40 may be incorporated within a single device. As will be appreciated, the XLAT translation device 38 and the TLB 40 may contain non-overlapping data. For example, the XLAT translation device 38 may contain table entries for a first portion of the virtual memory addresses, while the TLB 40 contains table entries for a second portion of the virtual memory addresses.

Typically, the TLB 40 contains table entries for virtual memory addresses that are accessed more frequently than the virtual memory addresses stored in the XLAT translation device 38. In certain embodiments, a search for the virtual memory address 32 may occur concurrently in the XLAT translation device 38 and the TLB 40. In other embodiments, a search for the virtual memory address 32 may occur in the TLB 40 before the search occurs in the XLAT translation device 38. However, after a table entry including the virtual memory address 32 is identified (e.g., located), both the XLAT translation device 38 and the TLB 40 stop searching for the virtual memory address 32.

In the present embodiment, the XLAT translation device 38 and the TLB 40 may each store data relating to how frequently a particular virtual memory address and/or physical memory address are accessed. Further, the XLAT translation device 38 and the TLB 40 may each store data that identifies a type of memory device corresponding to the physical memory address. Using this additional data, the memory management system 18 may optimize memory usage and/or optimize table mapping data stored in the XLAT translation device 38 and the TLB 40, as explained in detail below.

Accordingly, FIG. 3 illustrates a block diagram of the TLB 40 that may store data relating to how frequently a particular virtual memory address and/or physical memory address are accessed, and may store data that identifies a type of memory device corresponding to the particular physical memory address. In certain embodiments, the TLB 40 may be a content-addressable memory (CAM) device or n-way associative memory device. Specifically, the TLB 40 stores a table 42 having rows 44 and columns (46-52). In the present embodiment, each row 44 relates to a separate table entry. As such, each row 44 includes a virtual memory address column 46, a physical memory address column 48, a least recently used (LRU) column 50, and a device identification (TYPE) column 52.

The virtual memory address column 46 includes a listing of all virtual memory addresses contained in the TLB 40. Further, the physical memory address column 48 includes a physical memory address in each row 42 that corresponds to the virtual memory address in the virtual memory address column 46 of the respective row 42. The LRU column 50 includes data that relates to how frequently a respective physical memory address is accessed (e.g., access or usage data). For example, the LRU column 50 may include a value that represents the total number of times its corresponding virtual memory address and/or physical memory address have been accessed. As such, the LRU column 50 may be used to identify whether table entries should be removed from the table 42. For example, rows 44 that have been accessed with the least frequency (e.g., have the lowest value stored in the LRU column 50), may be removed from the table 42.

The TYPE column 52 includes device identification data in each row 42 that identifies a type of device that corresponds to the physical memory address in the physical memory address column 48 of the respective row 42. The device is accessed using the physical memory address (e.g., when a table hit occurs). For example, the device identification data may be a value that corresponds to a type of device. As will be appreciated, the memory management system 18 may include data that corresponds to each device. For example, the memory management system 18 may include data such as a name of each device, an operating speed of each device, a bus assigned to each device, an indication of relative speed of each device in relation to other physical devices, an endurance of each device, and so forth. During operation, the physical address may be used to directly access the memory devices 20, 22, and 24, thereby quickly accessing data stored on the memory devices 20, 22, and 24.

Turning to FIG. 4, a block diagram of the XLAT translation device 38 is illustrated. The XLAT translation device 38 includes a translation table (XT) 54 that may store data relating to how frequently a particular virtual memory address and/or physical memory address are accessed, and may store data that identifies a type of the memory device that corresponds with each physical memory address. Further, the XLAT translation device 38 includes a control unit 56 (e.g., a logic die of a hybrid memory cube) for controlling various operations of the XLAT translation device 38. Specifically, the XT 54 stores a table having rows 58 and columns (60-66). In the present embodiment, each row 58 relates to a separate table entry. As such, each row 58 includes a virtual memory address column 60, a physical memory address column 62, an LRU column 64, and a TYPE column 66.

The virtual memory address column 60 includes a listing of all virtual memory addresses contained in the XT 54. Further, the physical memory address column 62 includes a physical memory address in each row 58 that corresponds to the virtual memory address in the virtual memory address column 60 of the respective row 58. The LRU column 64 includes data that relates to how frequently a respective physical memory address is accessed (e.g., access or usage data). For example, the LRU column 64 may include a value that represents the total number of times its respective virtual memory address and/or physical memory address have been accessed. As such, the LRU column 64 may be used (e.g., by the control unit 56 of the translation device 38) to identify whether table entries should be moved from the XT 54 to the TLB 40. For example, rows 58 that have been accessed with the highest frequency (e.g., have the highest value stored in the LRU column 64), may be moved from the XT 54 into the TLB 40, at least in some conditions.

The TYPE column 66 includes device identification data in each row 58 that identifies a type of device that corresponds to the physical memory address in the physical memory address column 62 of the respective row 58. The device is accessed using the physical memory address (e.g., when a table hit occurs). For example, the device identification data may be a value that corresponds to a type of device. During operation, the physical memory address may be used to directly access the memory devices 20, 22, and 24, thereby quickly accessing data stored on the memory devices 20, 22, and 24.

The XLAT translation device 38 may be any of a variety of different devices, such as a hybrid memory cube (HMC) or a pattern recognition device, such as that disclosed in U.S. Publication Number 2010/0138575. Furthermore, hardware (e.g., processor) and/or software may be used to execute a search of the XT 54. As will be appreciated, prolonged access to the XT 54 may result in a significant performance penalty, particularly if stored in main memory (e.g., where the translation device 38 itself serves as the main memory, as may be the case if embodied in an HMC device). Accordingly, certain translation devices 38 may include hardware and/or software logic in addition to memory cells. For example, the XT 54 may be stored on a high performance memory array (HPMA) (e.g., HMC) or an assistive search memory device, such as the previously mentioned pattern recognition device. Such devices may be configured to search for virtual memory addresses within the XT 54 (e.g., execute a table walk). It should be noted that the TLB 40 may also be stored on an HPMA or an assistive search memory device. In certain embodiments, the TLB 40 and the XT 54 may be stored on the same device. By using an HPMA or an assistive search memory device, improved performance may be achieved. In certain embodiments, the control unit 56 may be used to perform a variety of functions. For example, the control unit 56 may control page table walks, TLB updates, LRU calculations, LRU updates, direct memory access for page movements, dynamically rearranging data that is assigned to the devices, dynamically change the mapping of virtual memory addresses to physical memory addresses, and so forth.

The control unit 56 may include software and/or hardware to aid functions of the memory management system 18. As such, FIG. 5 illustrates a flow chart of a method 68 for accessing a physical memory address when the memory management system 18 receives a virtual memory address. At block 70, the memory management system 18 receives a virtual memory address. Then, at block 72, the memory management system 18 searches for the virtual memory address in the TLB 40 (e.g., performs a lookup). Next, at block 74, a determination is made as to whether the memory management system 18 has identified (e.g., found) the virtual memory address in the TLB 40. If there is a TLB “miss,” at block 76, the memory management system 18 searches for the virtual memory address in the XT 54 (e.g., executes a lookup or a table walk). Then, at block 78, a determination is made as to whether the memory management system 18 has identified the virtual memory address in the XT 54. If there is an XT “miss,” at block 80, the memory management system 18 generates a page fault 36 which is sent to the processor 12.

If there is an XT “hit,” then, at block 82, the memory management system moves the XT table entry to the TLB 40. Further, at block 82, the memory management system 18 moves the least used TLB 40 entry to the XT 54. Next, at block 84, the memory management system 18 translates the virtual memory address to a physical memory address. This occurs after block 82, or in response to a TLB “hit” occurring per block 74. As will be appreciated, translating the virtual memory address to the physical memory address may include accessing all of the data in the entry that relates to the virtual memory address. For example, the memory management system 18 may retrieve the TYPE column data from the table entry for accessing the memory device. At block 86, the LRU data for the accessed table entry is updated (e.g., modified). For example, the value stored in the LRU column may be increased by one. Next, at block 88, the physical memory address is accessed.

Turning now to FIG. 6, a flow chart 90 of a method for managing a memory address space of a computing system is illustrated. At block 92, the memory management system 18 may use LRU data to rank table entries, such as ranking a table entry based on a number of times that a virtual memory address and/or a physical memory address of the table entry is accessed. Next, at block 94, the memory management system 18 may identify table entries that have a greater amount of use than other table entries and/or the memory management system 18 may identify table entries that have a lower amount of use than other table entries. Then, at block 96, the memory management system 18 may compare the type of memory devices that are allocated to the identified entries to available types of memory devices. For example, the memory management system 18 may identify whether table entries with a greater amount of use (e.g., higher access rates) are allocated to better memory types (e.g., faster memory, improved endurance) than table entries with a lower amount of use. At block 98, the memory management system 18 may identify whether there is a mismatch between a number of times the physical memory address is accessed and a type of memory device corresponding to the physical memory address.

If there is not a mismatch, the method may return to block 92. However, if there is a mismatch between the number of times the physical memory address is accessed and the type of memory device corresponding to the physical memory address, the memory management system 18 may identify whether a memory swap can be performed, per block 100. In certain embodiments, a memory swap may include exchanging a first set of data stored in a first type of memory with a second set of data stored in a second type of memory. For example, the memory management system 18 may move a first set of data stored in a first type of memory to a second type of memory and move a second set of data stored in the second type of memory to the first type of memory. Furthermore, moving the first and second sets of data may happen concurrently. For example, certain types of memory may support data movement that occurs simultaneously in both directions, such as DRAM DIMMs and HMC, and DRAM DIMMs and PCM. If a memory swap cannot be performed, the memory management system 18 may identify whether there is any memory available for moving the mismatched data, per block 102. If there is not any memory available, the method may return to block 100.

If there is memory available, per block 104, the memory management system 18 may move data from the memory of the identified entries to the available memory. For example, the memory management system 18 may cause data that corresponds to the identified table entries to be moved to a different type of memory device to remove the mismatch between the number of times the physical memory address is accessed and the type of memory corresponding to the physical memory address. Returning to block 100, if the memory management system 18 is able to perform a memory swap, the memory management system 18 may swap data between the memory devices, per block 106. After block 104 or block 106, the memory management system 18 updates the TLB 40 and/or XT 54 table entries. For example, the memory management system 18 may update the TLB 40 and/or XT 54 table entries with a revised mapping between a virtual memory address and a physical memory address, revised device data, and/or updated LRU data.

While the blocks 92 thorough 108 are described as being performed by the memory management system 18, it should be noted that any portion of the memory management system 18 (e.g., hardware and/or software) may perform the items described. For example, any of blocks 92 thorough 108 may be performed by the control unit 56. In certain embodiments, the memory management system 18 and/or the control unit 56 may be configured to dynamically change the mapping of virtual memory addresses to physical memory addresses based on an endurance or speed of a memory type. Using the techniques described herein, the memory management system 18 may maximize the performance of the system 10 and/or minimize software overhead.

While the invention may be susceptible to various modifications and alternative forms, specific embodiments have been shown by way of example in the drawings and have been described in detail herein. However, it should be understood that the invention is not intended to be limited to the particular forms disclosed. Rather, the invention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the following appended claims. 

What is claimed is:
 1. A memory management system comprising: a first memory translation table configured to associate a first virtual memory address to a first physical memory address, to first data that indicates how frequently the first physical memory address is accessed, and to second data that identifies a first memory type of a first memory device comprising the first physical memory address; a second memory translation table configured to associate a second virtual memory address to a second physical memory address, to third data that indicates how frequently the second physical memory address is accessed, and to fourth data that identifies a second memory type of a second memory device comprising the second physical memory address; and a control unit configured to control operation of the first memory device and the second memory device based at least in part on the first memory translation table and the second memory translation table.
 2. The memory management system of claim 1, wherein: the first memory translation table is stored in a translation device; and the second memory translation table is stored in a translation lookaside buffer.
 3. The memory management system of claim 1, wherein: the first memory translation table is configured to associate the first virtual memory address to fifth data that indicates how frequently the first virtual memory address is accessed; and the second memory translation table is configured to associate the second virtual memory address to sixth data that indicates how frequently the second virtual memory address is accessed.
 4. The memory management system of claim 1, wherein the first memory translation table is configured to change association of the first virtual memory address from the first physical memory address to the second physical memory address based at least in part on the first data, the second data, the third data, and the fourth data.
 5. The memory management system of claim 1, wherein the memory management system is configured to, based at least in part on the first data and the third data: move a first table entry that associates the first virtual memory address to the first physical memory address, the first data, and the second data from the first memory translation table to the second memory translation table; and move a second table entry that associates the second virtual memory address to the second physical memory address, the third data, and the fourth data from the second memory translation table to the first memory translation table.
 6. A memory management system comprising: a translation device configured to store a first memory translation table, wherein the first memory translation table is configured to: map a first plurality of virtual memory addresses to a first plurality of physical memory addresses; and map the first plurality of virtual memory addresses to first data that indicates how frequently each of the first plurality of physical memory addresses is accessed and to second data that indicates type of memory devices that comprise each of the first plurality of physical memory address; a translation lookaside buffer (TLB) configured to store a second memory translation table, wherein the second memory translation table is configured to: map a second plurality of virtual memory addresses to a second plurality of physical memory addresses; and map the second plurality of virtual memory address to third data that indicates how frequently each of the second plurality of physical memory addresses is accessed and to fourth data that indicates type of memory devices that comprise each of the second plurality of physical memory address; wherein the first memory translation table and the second memory translation table are non-overlapping; and a control unit configured to control operation of a memory device comprising at least one physical memory address in the first plurality of physical memory addresses or the second plurality of physical memory addresses based at least in part on the first memory translation table and the second memory translation table.
 7. The memory management system of claim 6, wherein the control unit is configured to search the first memory translation table to identify a first virtual memory address.
 8. The memory management system of claim 7, wherein the control unit is configured to search the first memory translation table independently from a processing device external to the memory management system.
 9. The memory management system of claim 6, wherein the translation device comprises a high performance memory array.
 10. The memory management system of claim 9, wherein the high performance memory array comprises a hybrid memory cube.
 11. The memory management system of claim 10, wherein the hybrid memory cube is configured to execute a table walk of the first memory translation table.
 12. The memory management system of claim 6, wherein the translation device is configured to provide main memory to a computer system.
 13. The memory management system of claim 6, wherein the translation device comprises an assistive search memory device.
 14. The memory management system of claim 6, wherein the TLB comprises a content-addressable memory.
 15. The memory management system of claim 6, wherein the TLB comprises an n-way associative memory device.
 16. The memory management system of claim 6, wherein the TLB and the translation device are incorporated within a single device.
 17. The memory management system of claim 6, wherein the TLB is incorporated within a first device and the translation device is incorporated within a second device.
 18. The memory management system of claim 6, wherein the control unit is configured to move a table entry associating a virtual memory address to a physical memory address from the first memory translation table to the second memory translation table based at least in part on data relating to how frequently the virtual memory address is accessed.
 19. The memory management system of claim 6, wherein the control unit is configured to search the first memory translation table and the second memory translation table concurrently.
 20. The memory management system of claim 6, wherein the control unit is configured to search the second memory translation table before the first memory translation table.
 21. The memory management system of claim 6, wherein the control unit is configured to stop a search in the first or the second memory translation table after a table entry including a virtual memory address is found in the first or the second memory translation table.
 22. The memory management system of claim 6, wherein the first data and the second data each comprises least recently used (LRU) data.
 23. The memory management system of claim 6, wherein the memory management system is configured to update the second memory translation table to map a first virtual memory address of the second plurality of virtual memory addresses from a first physical memory address of the second plurality of physical memory address to a second physical memory address when the first virtual memory address is accessed more frequently than a second virtual memory address mapped to the second physical memory address; wherein: a first memory device comprises the first physical memory address; and a second memory device comprises the second physical memory address, wherein the second memory device comprises a faster speed, a higher endurance, or both compared to the first memory device.
 24. The memory management system of claim 23, wherein the memory management system is configured to: move a first set of data from the first physical memory address to the second physical memory address; and move a second set of data from the second physical memory address to the first physical memory address.
 25. A computer system comprising: a processor; and a memory system communicatively coupled to the processor, wherein the memory system comprises: a first memory device comprising a first physical memory address, wherein the first memory device is a first memory type; a second memory device comprising a second physical memory address, wherein the second memory device is a second memory type; and a memory management system comprising a control unit configured to manage operation of the first memory device and the second memory device based at least in part on a first memory translation table and a second memory translation table that map virtual memory addresses to physical memory addresses, wherein the memory management system is configured to dynamically change mapping of a virtual memory address from the first physical memory address to the second physical memory address based at least in part on the first memory type, the second memory type, and data that indicates how frequently the virtual memory address is accessed.
 26. The computer system of claim 25, wherein the memory management system is configured to dynamically change the mapping of the virtual memory address to the second physical memory address based at least in part on endurance of the first memory device and endurance of the second memory device.
 27. The computer system of claim 25, wherein the memory management system is configured to dynamically change the mapping of the virtual memory address to the second physical memory address based at least in part on speed of the first memory device and speed of the second memory device. 